package com.ailink.spring;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;

@PropertySources(
        @PropertySource("classpath:application.properties")
)
@Configuration
public class MyPropertySources {
    public MyPropertySources() {
    }

    @Value("${server.port}")
    private String serverPort;

    public String getServerPort() {
        return serverPort;
    }

    public void setServerPort(String serverPort) {
        this.serverPort = serverPort;
    }
}
